#ifndef _CONFIG_H_
#define _CONFIG_H_

#include "gizwits_protocol.h"

#define CONFIG_SECTOR 0x3F9

#define SIG_SET_SOFTAP 0x11
#define SIG_SET_AIRLINK 0x12
#define SIG_SET_RESET 0x13


typedef struct
{
   unsigned char Isonoff;
   unsigned char bright;
   unsigned char colorvalue;
   unsigned char r;
   unsigned char g;
   unsigned char b;
   unsigned char w;
}dev_status_t;


typedef struct {
    uint8_t      initFlag;
    uint8_t      startContinue;
    uint16_t     startCount;
    uint8_t startConfigMode;
    dev_status_t devStatus;
   unsigned char ISCONFIG;
}__attribute__((aligned(4), packed)) system_info_t;

void configReadParam(void);
void configWriteParam(void);
void configCheckStart(void);
void configSetStartContinue(void);
void startClearStartContinueTimer(void);

#endif /*_CONFIG_H_*/
